const { resolve } = require("path");

module.exports = {
    entry: "./src/index.js",
    output: {
        filename: "index.js",
        path: resolve(__dirname, "dist"),
    },
    module: {
        rules: [
            // 配置loader打包css资源
            {
                test: /\.css$/,
                use: ["style-loader", "css-loader"],
            },
            // 配置loader打包less资源
            {
                test: /\.less$/,
                use: ["style-loader", "css-loader", "less-loader"],
            },
        ],
    },
    plugins: [],
    mode: "development",
};
